<div class='center_form'>
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:Common.submit();'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("saveBtn"); ?></div>
        </div>
        
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/consult/consult/delete/id/<?php echo $this->id;?>")'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/delete.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("delBtn");?></div>
        </div>
        
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/consult/consult");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("cancelBtn"); ?></div>
        </div>
    </div>
</div>
<div id="dbgrid_centerbig" class="dbgrid_centerbig">
<div class="dbgrid_center_top"><span class="center_top_title"><?php echo $this->translate("editConsultPage"); ?></span></div>
        <div class="dbgrid_center_right">
                    <table  cellpadding="1" cellspacing="0" >
                        <tr>
                            <td class = 'dbgrid_th'colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        </tr>
                        <tr>
                            <td class = 'dbgrid_th'><?php echo $this->translate("username"); ?></td>
                            <td class = 'dbgrid_td'><?php echo $this->query["name"]; ?></td>
                            <td class = 'dbgrid_th'><?php echo $this->translate("queryStatus"); ?></td>
                            <td class = 'dbgrid_td'><?php $consultConstant = new ConsultConstant();
                                                           echo $consultConstant->getQueryStatus($this->query["status"]);
                                                     ?></td>
                        </tr>
                        <tr>
                            <td class = 'dbgrid_th'><?php echo $this->translate("productTitle"); ?></td>
                            <td class = 'dbgrid_td'><?php echo $this->query["title"];?></td>
                            <td class = 'dbgrid_th'><?php echo $this->translate("productId"); ?></td>
                            <td class = 'dbgrid_td'><?php echo $this->query["id"];?></td>
                        </tr>
                        <tr>
                            <td class = 'dbgrid_th'><?php echo $this->translate("queryType"); ?></td>
                            <td class = 'dbgrid_td'><?php $consultConstant = new ConsultConstant();
                                                           echo $consultConstant->getConsultType($this->query["query_type"]);
                                                    ?></td>
                            <td class = 'dbgrid_th'><?php echo $this->translate("queryTime"); ?></td>
                            <td class = 'dbgrid_td'><?php echo $this->query["created"];?></td>
                        </tr>
                        <tr>
                            <td class = 'dbgrid_th'><?php echo $this->translate("replyMan"); ?></td>
                            <td class = 'dbgrid_td'><?php echo $this->reply["username"];?></td>
                            <td class = 'dbgrid_th'><?php echo $this->translate("replyTime"); ?></td>
                            <td class = 'dbgrid_td'><?php echo $this->reply["created"];?></td>
                        </tr>
                        <!-- 
                        <tr>
                            <td class = 'dbgrid_th'><?php //echo $this->translate("evaluateValue"); ?></td>
                            <td class = 'dbgrid_td'><?php //echo $this->query["evaluate_value"];?></td>
                            <td class = 'dbgrid_th'><?php //echo $this->translate("evaluateTime"); ?></td>
                            <td class = 'dbgrid_td'><?php //echo $this->query["evaluate_time"];?></td>
                        </tr>
                         -->
                        <tr>
                            <td class = 'dbgrid_th'><?php echo $this->translate("queryContent"); ?></td>
                            <td class = 'dbgrid_td' colspan="3" align="left"><?php echo $this->query["content"];?></td>
                        </tr>
                    </table>
                    <form action="<?php echo $this->form->getAction(); ?>" method="post">
                        <?php ZendFormUtil::renderHiddenElement($this->form->id); ?>
                        <?php ZendFormUtil::renderHiddenElement($this->form->replyId); ?>
                        <?php ZendFormUtil::renderHiddenElement($this->form->hReplayId); ?>
                        <?php ZendFormUtil::renderElement($this->form->content); ?>
                    </form>
               </div>
          <div class="dbgrid_center_top"></div>    
</div>